Mastering CSS Grid by Pascal Thormeier
Author:Pascal Thormeier
Language: eng
Format: epub
Publisher: Packt Publishing Pvt Ltd
Published: 2023-05-16T00:00:00+00:00
Figure 5.2 â The unaligned media object
The result is what we would expect: the content div functions as a block element that spans the entire width, pushing itself to the following line and rendering the entire element vertically. To rebuild the Bootstrap example, we must move the content to the right of the image.
Letâs first apply CSS Grid to it to see how it behaves. Weâll need two columns, one of size auto and one of size 1fr, so the column containing the image does not grow beyond its content size:
.media-object { /* Previous declarations omitted for brevity */ display: grid; grid-template-columns: auto 1fr; }
This code does what we want, as shown in the following figure:
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Hello! Python by Anthony Briggs(9928)
The Mikado Method by Ola Ellnestam Daniel Brolund(9787)
Dependency Injection in .NET by Mark Seemann(9348)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7792)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7567)
Svelte with Test-Driven Development by Daniel Irvine(7271)
Test-Driven Development with PHP 8 by Rainier Sarabia(7008)
Layered Design for Ruby on Rails Applications by Dementyev Vladimir;(6863)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(6541)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6425)
Web Development with Django by Ben Shaw Saurabh Badhwar(6327)
React Application Architecture for Production by Alan Alickovic(6048)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5816)
Kotlin in Action by Dmitry Jemerov(5074)
Audition by Ryu Murakami(4594)
Software Architecture for Web Developers by Mihaela Roxana Ghidersa(4513)
Accelerating Server-Side Development with Fastify by Manuel Spigolon Maksim Sinik & Matteo Collina(4359)
Hands-On Full-Stack Web Development with GraphQL and React by Sebastian Grebe(4323)
Solidity Programming Essentials by Ritesh Modi(4064)
